<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
?>
<div class="list-search-form">

    <?php $form = ActiveForm::begin([
        'id' => 'searchForm',
        'method' => 'get',
        'action' => Yii::$app->urlManager->createUrl(['exhibition-hall/index'])
    ]); ?>
    <table class="search-form">
        <tr>
            <td>
                <div class="form-group">
                    <label class="label-control"><?=Yii::t('common', 'keyword')?></label>
                    <?=Html::input('text', 'keywords', isset($params['keywords']) ? $params['keywords'] : '', ['class' => 'form-control', 'placeholder' => Yii::t('common', 'search_hall')])?>
                </div>
            </td>
            <td>
                <div class="form-group">
                    <label class="label-control"><?=Yii::t('common', 'recommend')?></label>
                    <?=Html::dropDownList('recommend', isset($params['recommend']) ? $params['recommend'] : '', \common\helpers\TStringHelper::getYesOrNo(), ['class' => 'form-control', 'prompt'=>Yii::t('common','all_data')])?>
                </div>
            </td>
            <td>
                <div class="form-group">
                    <label class="label-control"><?=Yii::t('common', 'status')?></label>
                    <?=Html::dropDownList('status', isset($params['status']) ? $params['status'] : '', \common\helpers\TStringHelper::getStatusText(), ['class' => 'form-control', 'prompt'=>Yii::t('common','all_data')])?>
                </div>
            </td>
            <td>
                <div class="form-group">
                    <label class="label-control">&nbsp;</label>
                    <div class="input-group">
                        <?= Html::submitButton(Yii::t('common', 'search'), ['class' => 'btn btn-primary', 'id'=>'search']) ?>
                        <?= Html::button(Yii::t('common', 'reset'), ['class' => 'btn btn-default', 'id'=>'reset']) ?>
                    </div>
                </div>
            </td>
        </tr>
    </table>


    <?php ActiveForm::end(); ?>

</div>